package zhihui.mobile.ui.shop.details;


import java.util.List;
import java.util.Map;

import zhihui.mobile.bean.shop.BannerInfo;
import zhihui.mobile.bean.shop.detail.ShopDetail;
import zhihui.mobile.bean.shop.detail.SpecifInfo;
import zhihui.mobile.presenter.IPresenter;
import zhihui.mobile.ui.IView;

/**
 * Created by 张公铭 on 2017/8/4 0004.
 */

public interface IShopDetailsContract
{
    interface IShopDetailsView extends IView
    {
        void refreshView(ShopDetail shopDetail);

        void refreshBanner(List<BannerInfo> list);

        void showSpecificationDialog(Map<String, List<SpecifInfo>> map, int type);

        void goComfirmOrderActivity();

        void refreshCartNum(int num);

        void initSpecification(String key, String value, int skuId, int price);

        void updateBuyState(int salestock);
    }

    interface IShopDetailsPresenter extends IPresenter
    {
        void initViewData();

        void addShopCart(int skuid, int num);

        void getSpecificationInfo(int type);

        void goComfirmOrder(int skuId, int num);

        void attention();
    }
}
